package com.zygh.questionnairesurvey.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value="Operation对象", description="")
public class Operation implements Serializable {
    @ApiModelProperty(value = "主键")
    private Integer operationId;

    @ApiModelProperty(value = "用户名（警号）")
    private String userName;

    @ApiModelProperty(value = "请求ip")
    private String ip;

    @ApiModelProperty(value = "请求地址")
    private String url;

    @ApiModelProperty(value = "请求方式（get/post）")
    private String httpMethod;

    @ApiModelProperty(value = "请求方法名")
    private String classMethod;

    @ApiModelProperty(value = "请求参数")
    private String requestParams;

    @ApiModelProperty(value = "返回结果")
    private String result;

    @ApiModelProperty(value = "异常信息")
    private String exception;

    @ApiModelProperty(value = "请求耗时")
    private Long timeCost;

    @ApiModelProperty(value = "日志记录时间")
    private Date time;




}
